package com.sgb.kjwl.model.entity.enterprise;

import java.io.Serializable;

public class PublishPropertyDetailEntity implements Serializable {


    /**
     * buyingTime : 1970-01-01T00:00:00.000+00:00
     * typeName : 电脑
     * teamNo : 1332272412473036800
     * buyingPrice : -2
     * assetsName : 团队电脑资产转让测试
     * contactNumber : 18212345780
     * salePrice : 1.23456789011E9
     * linkman : 团队电脑资产转让测试
     * realName : 成都经营帮企业服务团队22222222222222222211199944987878378服务团2
     * assetsOldNew : 10成新
     * detailedDescription : 团队电脑资产转让测试团队电脑资产转让测试
     * commodityImages : https://shigongbang.oss-cn-hangzhou.aliyuncs.com/member_center/610000/2021012612425759857463.jpg
     */

    private String buyingTime;
    private String typeName;
    private String teamNo;
    private double buyingPrice;
    private String assetsName;
    private String contactNumber;
    private double salePrice;
    private String linkman;
    private String realName;
    private String assetsOldNew;
    private String detailedDescription;
    private String commodityImages;
    private int status;
    private long id;
    private String assetsId;
    private String assetsNewAndOldId;
    private String assetsType;

    public String getAssetsType() {
        return assetsType;
    }

    public void setAssetsType(String assetsType) {
        this.assetsType = assetsType;
    }

    public String getAssetsNewAndOldId() {
        return assetsNewAndOldId;
    }

    public void setAssetsNewAndOldId(String assetsNewAndOldId) {
        this.assetsNewAndOldId = assetsNewAndOldId;
    }

    public String getAssetsId() {
        return assetsId;
    }

    public void setAssetsId(String assetsId) {
        this.assetsId = assetsId;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getBuyingTime() {
        return buyingTime == null ? "" : buyingTime;
    }

    public void setBuyingTime(String buyingTime) {
        this.buyingTime = buyingTime;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getTeamNo() {
        return teamNo;
    }

    public void setTeamNo(String teamNo) {
        this.teamNo = teamNo;
    }

    public double getBuyingPrice() {
        return buyingPrice == 0 ? -2 : buyingPrice;
    }

    public void setBuyingPrice(double buyingPrice) {
        this.buyingPrice = buyingPrice;
    }

    public String getAssetsName() {
        return assetsName;
    }

    public void setAssetsName(String assetsName) {
        this.assetsName = assetsName;
    }

    public String getContactNumber() {
        return contactNumber;
    }

    public void setContactNumber(String contactNumber) {
        this.contactNumber = contactNumber;
    }

    public double getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(double salePrice) {
        this.salePrice = salePrice;
    }

    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getAssetsOldNew() {
        return assetsOldNew;
    }

    public void setAssetsOldNew(String assetsOldNew) {
        this.assetsOldNew = assetsOldNew;
    }

    public String getDetailedDescription() {
        return detailedDescription;
    }

    public void setDetailedDescription(String detailedDescription) {
        this.detailedDescription = detailedDescription;
    }

    public String getCommodityImages() {
        return commodityImages == null ? "" : commodityImages;
    }

    public void setCommodityImages(String commodityImages) {
        this.commodityImages = commodityImages;
    }

    public String getImage(String path){
        if (path == null){
            return "";
        }
        String[] str = path.split(",");
        return str[0];
    }

    public String[] getImages(String path){
        if (path == null){
            return new String[]{""};
        }
        return path.split(",");
    }
}
